import { defineStore } from 'pinia'
import { Menu } from '../api/menu/index'
export const useMenuStore = defineStore('menu', {
    state: () => {
        return {
            menus : Array<Menu>()
        }
    },
    getters: {
        getMenus: (state) => {
            return state.menus
        }
    },
    actions: {
        setMenus(menus:  Menu[]) {
            console.log(menus)
            this.menus = menus
        }
    },
    
})
